import { httpData } from '@/utils/types';
import { post, get } from '@/utils/request';
export default {
    //*********************************************物料采购入库*********************************************** */
    // 采购入库气瓶关-单容器扫码
    cylinderRelateScan: (data?: httpData) => {
        return get('/warehouse/purchase/cylinder/relate/scan', data);
    },

    //********************采购建档*************************
    // 满瓶入库-采购入库-采购建档新增编辑
    fullPurchaseArchiveSave: (data?: httpData) => {
        return post('/warehouse/enter/full/purchase/archive/save', data);
    },

    // 满瓶入库-采购入库-获取批号
    getBatchNumber: (data?: httpData) => {
        return get('/warehouse/enter/full/purchase/archive/getBatchNumber', data);
    },

    // 满瓶入库-采购入库-生成固定码搜索
    fullPurchaseArchiveDetailScanCylinderNum: (data?: httpData) => {
        return get('/warehouse/enter/full/purchase/archive/detail/scan/cylinderNum', data);
    },

    // 满瓶入库-采购入库-生成流水码
    getBatchCode: (data?: httpData) => {
        return get('/warehouse/enter/full/purchase/archive/detail/getBatchCode', data);
    },

    // 计划管理-采购到货通知单分页
    purchaseArrivalNoticeList: (data?: httpData) => {
        return get('/app/order/purchase/arrival/notice/list', data);
    },

    //********************采购入厂*************************
    // 采购入库气瓶关联新增编辑-扫码入厂单个
    purchaseCylinderRelateSave: (data?: httpData) => {
        return post('/warehouse/purchase/cylinder/relate/save', data);
    },
    // /warehouse/purchase/cylinder/relate/saveBatch
    purchaseCylinderRelateSaveBatch: (data?: httpData) => {
        return post('/warehouse/purchase/cylinder/relate/saveBatch', data);
    },

    // 采购入库气瓶关-获取同批次可入库的容器
    batchNumber: (data?: httpData) => {
        return get('/warehouse/purchase/cylinder/relate/list/batchNumber', data);
    },

    //********************采购入库*************************
    // 满瓶入库-采购入库分页
    inWarehouseList: (data?: httpData) => {
        return get('/app/order/purchase/arrival/notice/list', data);
    },

    // 满瓶入库-采购入库详情
    inWarehouseDetail: (data?: httpData) => {
        return get('/warehouse/enter/full/purchase/in/warehouse/detail', data);
    },

    // 满瓶入库-采购入库新增编辑
    inWarehouseSave: (data?: httpData) => {
        return post('/warehouse/enter/full/purchase/in/warehouse/save', data);
    },

    // 获取已分析气瓶列表
    getAnalyseCylinder: (data?: httpData) => {
        return get('/app/order/purchase/arrival/notice/detail', data);
    },

    //*********************************************物料采购报检*********************************************** */
    // 仓储管理-报检单-扫码
    warehouseEnterInspectionScan: (data?: httpData) => {
        return get('/warehouse/enter/inspection/scan', data);
    },
    // 库内复检报检
    knfjInspectionScan: (data?: httpData) => {
        return get('/app/warehouse/inspection/scan', data);
    },
    // 仓储管理-报检单新增编辑
    warehouseEnterInspectionSave: (data?: httpData) => {
        return post('/warehouse/enter/inspection/save', data);
    },

    // app生产管理-轻组分报检提交
    impurityInspectionSubmit: (data?: httpData) => {
        return post('/app/light/impurity/inspection/submit', data);
    },
    // 库内复检报检提交
    knInspectionSubmit: (data?: httpData) => {
        return post('/app/warehouse/inspection/submit', data);
    },

    // 报检单-获取该单据未报检气瓶
    getNoInspection: (data?: httpData) => {
        return get('/warehouse/enter/inspection/getNoInspection', data);
    },

    // 轻组分下拉检验方案
    getQzfInspectionScheme: (data?: httpData) => {
        return get('/app/light/impurity/inspection/listStandard', data);
    },
    // 库内复检报检方案
    getKnfjlistStandardScheme: (data?: httpData) => {
        return get('/app/warehouse/inspection/listStandard', data);
    },
    //*********************************************生产退料申请*********************************************** */
    // 仓储管理-空瓶入库-车间空瓶退库新增编辑
    workshopEmptyReturnSave: (data?: httpData) => {
        return post('/warehouse/enter/workshop/empty/return/save', data);
    },

    // 仓储管理-空瓶入库-车间空瓶退库扫条码号
    workshopEmptyReturnScanCode: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/scanCode', data);
    },
    // 查询领料单列表
    getMaterialRequisition: (data?: httpData) => {
        return get('/warehouse/out/full/material/receive/canAssociated', data);
    },
    //*********************************************生产退料入库*********************************************** */
    // 仓储管理-空瓶入库-车间空瓶退库分页
    workshopEmptyReturnList: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/list', data);
    },

    // 仓储管理-空瓶入库-车间空瓶退库详情
    workshopEmptyReturnDetail: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/detail', data);
    },

    // 仓储管理-空瓶入库-车间空瓶退库详情扫条码校验
    workshopEmptyReturnDetailScanCheck: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/detail/scanCheck', data);
    },

    // 仓储管理-空瓶入库-车间空瓶退库详情提交
    workshopEmptyReturnDetailUpdateStatus: (data?: httpData) => {
        return post('/warehouse/enter/workshop/empty/return/detail/updateStatus', data);
    },
    //*********************************************生产物料入库*********************************************** */
    //********************生产入库前检验*************************
    // 满瓶入库-生产物料入库-物料入库前检验分页
    productInspectionList: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/inspection/list', data);
    },

    // 满瓶入库-生产物料入库-物料入库前检验删除
    productInspectionDelete: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/inspection/delete', data);
    },

    // 满瓶入库-生产物料入库-物料入库前检验详情
    productInspectionDetail: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/inspection/detail', data);
    },

    // 满瓶入库-生产物料入库-物料入库前检验新增编辑
    productInspectionSave: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/inspection/save', data);
    },

    // 生产物料入库-物料入库前检验-物料试漏录入详情
    inspectionLeakTestDetail: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/inspection/leak/test/detail', data);
    },

    // 满瓶入库-生产物料入库-物料入库前检验-物料试漏录入新增编辑
    inspectionLeakTestSave: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/inspection/leak/test/save', data);
    },

    // 满瓶入库-生产物料入库-物料入库前检验复称扫码
    productInspectionDetailScan: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/inspection/detail/scan', data);
    },

    // 满瓶入库-生产物料入库-物料入库前检验复称详情新增编辑
    productInspectionDetailSave: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/inspection/detail/save', data);
    },

    // 仓储管理-满瓶入库-生产物料入库-物料入库前检验总提交
    productInspectionTotalSubmit: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/inspection/total/submit', data);
    },

    // 仓储管理-满瓶入库-生产物料入库-物料入库前检验复称详情删除
    productInspectionDetailDelete: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/inspection/detail/delete', data);
    },

    // 满瓶入库-生产物料入库-根据标准数量和温度获取压力值
    productInspectionDetailGetPressure: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/inspection/detail/getPressure', data);
    },

    //********************生产物料入库*************************
    //******************主页*********************
    // 满瓶入库-生产物料入库分页
    finishedProductList: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/list', data);
    },

    // 满瓶入库-生产物料入库新增编辑
    finishedProductSave: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/save', data);
    },

    // 满瓶入库-生产物料入库删除
    finishedProductDelete: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/delete', data);
    },

    //*********************************************
    // 满瓶入库-生产物料入库详情
    finishedProductDetail: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/detail', data);
    },

    // 满瓶入库-生产物料入库结束入库
    finishedProductEnd: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/end', data);
    },

    // 满瓶入库-生产物料入库详情删除
    finishedProductDetailDelete: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/detail/delete', data);
    },

    // 满瓶入库-生产物料入库详情扫码
    finishedProductDetailScan: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/detail/scan', data);
    },

    // 满瓶入库-生产物料入库详情新增编辑
    finishedProductDetailSave: (data?: httpData) => {
        return post('/warehouse/enter/full/finished/product/detail/save', data);
    },

    //*********************************************客户退货入库*********************************************** */
    // 容器扫码管理-公共扫码
    appScanBasic: (data?: httpData) => {
        return get('/app/scan/basic', data);
    },
    // 获取可选发货通知单
    getCanSelected: (data?: httpData) => {
        return get('/order/delivery/notice/canSelected', data);
    },
    // 新增自定义退货通知单
    addOrderDeliveryNotice: (data?: httpData) => {
        return post('/pc/order/customer/return/notice/customizeReturn', data);
    },
    // 自定义核对信息查询
    getCheckDataDrtail: (data?: httpData) => {
        return get('/app/order/customer/return/notice/detail', data);
    },
    // 自定义结束入库
    diyEndStorage: (data?: httpData) => {
        return post('/pc/order/customer/return/notice/endStorage', data);
    },
    // 仓库管理-入库-客户退货入库分页
    customerReturnNoticeList: (data?: httpData) => {
        return get('/app/order/customer/return/notice/list', data);
    },

    // 仓储管理-满瓶入库-客户退货入库新增编辑
    enterFullCustomerReturnSave: (data?: httpData) => {
        return post('/warehouse/enter/full/customer/return/save', data);
    },

    // 查看入厂检查
    getInspectDetail: (data?: httpData) => {
        return get('/warehouse/enter/full/finished/product/inspection/detail/common/detail', data);
    },

    /**
     * 采购入库单气瓶详情
     */
    getCylinderDetail: (data?: httpData) => {
        return get('/app/order/purchase/arrival/notice/cylinder/detail', data);
    },
};
